package utils

import (
	"encoding/json"
	"fmt"
)

func JsonStr(obj interface{}) string {
	raw, err := json.Marshal(obj)
	if err != nil {
		fmt.Println("JsonStr error: ", err.Error())
		return ""
	}
	return string(raw)
}
